//
//  MtimeButton2.m
//  Mtime2.0
//
//  Created by 凉气的Mac on 16/9/5.
//  Copyright © 2016年 凉气的Mac. All rights reserved.
//

#import "MtimeButton2.h"

@implementation MtimeButton2

-(void)layoutSubviews{

    [super layoutSubviews];
    
    self.imageView.y = 0;
    
    self.imageView.x = 0;
    
    self.imageView.width = self.width;
    
    self.titleLabel.font = [UIFont systemFontOfSize:12];
    
    self.imageEdgeInsets = UIEdgeInsetsMake(-20, 20, -20, 20);
    
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    
    self.titleLabel.y = self.imageView.height + 5;
    
    self.titleLabel.width = self.width;
    
    self.titleLabel.x = 0;
    

}

@end
